package dql.com.ordsystem;

import android.os.Bundle;

import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.widget.EditText;
import android.widget.Toast;


public class MainActivity extends Activity {
    
	private EditText tablenum;
	private EditText pass;
	private Table table;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);	
		setContentView(R.layout.activity_main);
		tablenum=(EditText) findViewById(R.id.editText1);
		pass =(EditText)findViewById(R.id.passtext);
		Item it = new Item(this.getApplicationContext());
		it.insert("Cola0.2L(1.2)", "2,30€", "s");
		it.insert("Cola0.4L(1.2)", "3,90€", "s");
		it.insert("ColaLight0.2L(2.3.5)", "2,30€", "s");
		it.insert("ColaLight0.4L(2.3.5)", "3,90€", "s");
		it.insert("Sprite0.2L", "2,30€", "s");
		it.insert("Sprite0.4L", "3,90€", "s");
		it.insert("Fanta0.2L(2.4)", "2,30€", "s");
		it.insert("Fanta0.4L(2.4)", "3,90€", "s");
		it.insert("Spezi0.2L", "2,30€", "s");
		it.insert("Spezi0.4L", "3,90€", "s");
		it.insert("Apfelschorle0.2L", "2,30€", "s");
		it.insert("Apfelschorle0.4L", "3,90€", "s");
		it.insert("Apfelsaft0.2L", "2,30€", "n");
		it.insert("Apfelsaft0.4L", "3,90€", "n");
		it.insert("Ginger-Ale0.2L", "2,30€", "n");
		it.insert("Ginger-Ale0.4L", "3,90€", "n");
		it.insert("Bitter-Lemon0.2L", "2,30€", "n");
		it.insert("Bitter-Lemon0.4L", "3,90€", "n");
		it.insert("Johannisbeersaft0.2L", "2,30€", "n");
		it.insert("Johannisbeersaft0.4L", "3,90€", "n");
		it.insert("Orangennektar0.2L", "2,30€", "n");
		it.insert("Orangennektar0.4L", "3,90€", "n");
		it.insert("Mangonektar0.2L", "2,30€", "n");
		it.insert("Mangonektar0.4L", "3,90€", "n");
		it.insert("Litschinektar0.2L", "2,30€", "n");
		it.insert("Litschinektar0.4L", "3,90€", "n");
		it.insert("Limonaden(zitronen)0.2L", "2,30€", "w");
		it.insert("Limonaden(zitronen)0.4L", "3,90€", "w");
		it.insert("Limonaden(orangen)0.2L", "2,30€", "w");
		it.insert("Limonaden(orangen)0.4L", "3,90€", "w");
		it.insert("Mineralwasser0.2L", "2,10€", "w");
		it.insert("Mineralwasser0.4L", "3,30€", "w");
		it.insert("Mineralwasser(Still)0.2L", "2,10€", "w");
		it.insert("Mineralwasser(Still)0.4L", "3,30€", "w");
		it.insert("Mineralwasser0.75L", "4,80€", "w");
		it.insert("Mineralwasser(Still)0.75L", "4,80€", "w");
		it.insert("Pils0.33L", "2,70€", "b");
		it.insert("Pils0.5L", "3,90€", "b");
		it.insert("Hefe-Weizen0.5L", "3,90€", "b");
		it.insert("Asahi(jap.Bier))0.33L", "3,70€", "b");
		it.insert("Export0.5L", "3,90€", "b");
		it.insert("Radler0.33L", "2,70€", "b");
		it.insert("Radler0.5L", "3,70€", "b");
		it.insert("ColaBier0.33L(1.2.4)", "2,70€", "b");
		it.insert("ColaBier0.5L(1.2.4)", "3,70€", "b");
		it.insert("Bananeweizen0.33L", "2,70€", "b");
		it.insert("Bananeweizen0.5L", "3,70€", "b");
		it.insert("AlkoholfreiBier0.33L", "2,70€", "b");
		it.insert("Eistee0.2L", "2,30€", "s");
		it.insert("Eistee0.4L", "3,90€", "s");
		it.insert("GruenerTee", "3,90€", "h");
		it.insert("JasminTee", "3,90€", "h");
		it.insert("SchwarzerTee", "3,90€", "h");
		it.insert("Kaffee", "2,80€", "h");
		it.insert("Milchkaffee", "2,80€", "h");
		it.insert("Cappucino", "2,80€", "h");
		it.insert("LatteMacchiato", "2,80€", "h");
		it.insert("Espresso", "3,00€", "h");
		it.insert("Frischer-Salat", "2,90€", "a");
		it.insert("Algensalat", "3,60€", "a");
		it.insert("Tintenfischsalat", "4,50€", "a");
		it.insert("Octopussalat", "4,90€", "a");
		it.insert("Spinat-Tofu-Salat", "3,90€", "a");
		it.insert("Rinderfilet-Salat", "5,30€", "a");
		it.insert("Frittiertes-Tofu", "1,90€", "f");
		it.insert("Frittierte-Garnelen", "4,30€", "f");
		it.insert("Frittiertes-Haehnchenfleisch", "3,80€", "f");
		it.insert("Frittierte-Kartoffeln", "2,80€", "f");
		it.insert("Fruehlingsrollen-mit-Meeresfruechten und Kaese", "3,70€", "f");
		it.insert("Frittierte-Teigtaschen-mit-Garnelen-und-Nori", "4,90€", "f");
		it.insert("Gegrillter-Aal", "13,90€", "g");
		it.insert("Gegrilltes-Schweinfleisch-mit-Honigsauce", "5,90€", "g");
		it.insert("Gegrilltes-Huehnchenfleisch", "4,50€", "g");
		it.insert("Gegrillte-Garnelen-mit-Knoblauch", "4,80€", "g");
		it.insert("Gegrillte-Austern-mit-Knoblauch", "3,20€", "g");
		it.insert("Gegrillte-Rinderzunge", "3,20€", "g");
		it.insert("Gegrilltes-Rinderroulade-mit-Gemuese", "6,40€", "g");
		it.insert("Gegrillte-Aubergine-mit-japanischem-Miso", "3,30€", "g");
		it.insert("Gegrillte-Pilze", "2,90€", "g");
		it.insert("Gegrilltes-Omelett", "2,80€", "g");
		it.insert("Gegrillter-Lachs", "7,30€", "g");
		it.insert("Sushi-mit-gebratener-Entenbrust", "16,90€", "m");
		it.insert("Sushi-mit-gebratenem-Lachsfilet", "17,90€", "m");
		it.insert("Sushi-mit-gebratenem-Rinderfilet", "18,90€", "m");
		it.insert("Sushi-mit-gebratenem-Schweinefleisch mit Honigsauce", "15,90€", "m");
		it.insert("Sushi-mit-gebratenen-Garnelen-und-Soja", "16,90€", "m");
		it.insert("Regenbogen-Sushi", "18,90€", "m");
		it.insert("Reis-Beilage", "1,50€", "m");
		it.insert("Sauvignon Blanc 100ml", "2,30€", "z");
		it.insert("Sauvignon Blanc 250ml", "4,30€", "z");
		it.insert("Sauvignon Blanc 750ml", "17,90€", "z");
		it.insert("Grauer Burgunder Kabinett 100ml", "2,10€", "z");
		it.insert("Grauer Burgunder Kabinett 250ml", "3,80€", "z");
		it.insert("Grauer Burgunder Kabinett 750ml", "13,90€", "z");
		it.insert("Merlot QbA 100ml", "3,10€", "z");
		it.insert("Merlot QbA 250ml", "4,70€", "z");
		it.insert("Merlot QbA 750ml", "21,90€", "z");
		it.insert("Riesling Kabinett 100ml", "1,90€", "z");
		it.insert("Riesling Kabinett 250ml", "3,60€", "z");
		it.insert("Riesling Kabinett 750ml", "12,90€", "z");
		it.insert("Weisser Burgunder QbA 100ml", "2,10€", "z");
		it.insert("Weisser Burgunder QbA 250ml", "3,80€", "z");
		it.insert("Weisser Burgunder QbA 750ml", "13,90€", "z");
		it.insert("Spaetburgunder Rotwein Spaetlese 100ml", "2,30€", "z");
		it.insert("Spaetburgunder Rotwein Spaetlese 250ml", "4,30€", "z");
		it.insert("Spaetburgunder Rotwein Spaetlese 750ml", "17,90€", "z");
		it.insert("Riesling Spaetlese 100ml", "1,90€", "z");
		it.insert("Riesling Spaetlese 250ml", "3,60€", "z");
		it.insert("Riesling Spaetlese 750ml", "12,90€", "z");
		it.insert("Spaetburgunder Rotwein QbA 100ml", "2,30€", "z");
		it.insert("Spaetburgunder Rotwein QbA 250ml", "4,30€", "z");
		it.insert("Spaetburgunder Rotwein QbA 750ml", "17,90€", "z");
		it.insert("Silbe stern Riesling 200ml", "4,10€", "z");
		it.insert("Pinot-Sekt 200ml", "4,10€", "z");
		it.insert("OZEKI Junmai-Sake 100ml(gekuehlt)", "2,60€", "J");
		it.insert("OZEKI Junmai-Sake 100ml(raumtemperatur)", "2,60€", "J");
		it.insert("OZEKI Junmai-Sake 100ml(warm)", "2,60€", "J");
		it.insert("OZEKI Junmai-Sake 750ml(Flasche)", "17,50€", "J");
		it.insert("OZEKI Karatanba Honjozo 100ml(gekuehlt)", "4,30€", "J");
		it.insert("OZEKI Karatanba Honjozo 100ml(raumtemperatur)", "4,30€", "J");
		it.insert("OZEKI Karatanba Honjozo 100ml(warm)", "4,30€", "J");
		it.insert("OZEKI Karatanba Honjozo 750ml(Flasche)", "29,50€", "J");
		it.insert("OZEKI Hana Awaka 100ml(gekuehlt)", "4,30€", "J");
		it.insert("OZEKI Hana Awaka 100ml(raumtemperatur)", "4,30€", "J");
		it.insert("OZEKI Hana Awaka 100ml(warm)", "4,30€", "J");
		it.insert("OZEKI Hana Awaka 750ml(Flasche)", "29,50€", "J");
		it.insert("HAKKAISAN 100ml(gekuehlt)", "4,50€", "J");
		it.insert("HAKKAISAN 100ml(raumtemperatur)", "4,50€", "J");
		it.insert("HAKKAISAN 100ml(warm)", "4,50€", "J");
		it.insert("HAKKAISAN 750ml(Flasche)", "4,50€", "J");
		it.insert("TAMANOHIKARI 100ml(gekuehlt)", "5,20€", "J");
		it.insert("TAMANOHIKARI 100ml(raumtemperatur)", "5,20€", "J");
		it.insert("TAMANOHIKARI 100ml(warm)", "5,20€", "J");
		it.insert("TAMANOHIKARI 750ml(Flasche)", "31,50€", "J");
		it.insert("KUBOTA 100ml(gekuehlt)", "4,40€", "J");
		it.insert("KUBOTA 100ml(raumtemperatur)", "4,40€", "J");
		it.insert("KUBOTA 100ml(warm)", "4,40€", "J");
		it.insert("KUBOTA 750ml(Flasche)", "30,00€", "J");
		it.insert("Satsuma 180ml(gekuehlt)", "4,00€", "J");
		it.insert("Satsuma 180ml(raumtemperatur)", "4,00€", "J");
		it.insert("Satsuma 180ml(warm)", "4,00€", "J");
		it.insert("Satsuma 700ml(Flasche)", "15,50€", "J");
		it.insert("Machida 180ml(gekuehlt)", "4,00€", "J");
		it.insert("Machida 180ml(raumtemperatur)", "4,00€", "J");
		it.insert("Machida 180ml(warm)", "4,00€", "J");
		it.insert("Machida 700ml(Flasche)", "15,50€", "J");
	}
	


	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
	public void goNext(View view){
	
		
	}
	
	public void tryF(View view){
		Table table = (Table)getApplicationContext();
		
		if(pass.getText().toString().equals("slx")){
			String num =tablenum.getText().toString();
			table.setNum(num);
			Intent intent =new Intent(this, TryLayOut.class);
			startActivity(intent);
			
		} else {
			Toast.makeText(getApplicationContext(), "falsh Passwörte", Toast.LENGTH_SHORT).show();
			pass.setText("");
			pass.requestFocus();
			
		}
		
		
	}
	
	

}
